import { DocumentBuilder } from '@nestjs/swagger';

export const swaggerConfig = new DocumentBuilder()
  .setTitle('H5 Server API')
  .setDescription('H5 Server API Documentation')
  .setVersion('1.0')
  .addTag('h5')
  .addBearerAuth(
    {
      type: 'http',
      scheme: 'bearer',
      bearerFormat: 'JWT',
      name: 'JWT',
      description: '请输入 JWT token',
      in: 'header',
    },
    'JWT-auth',
  )
  // 移除 addGlobalParameters，改用 addSecurityRequirements
  .addSecurityRequirements('JWT-auth')
  .build();
export const SWAGGER_API_ROOT = 'api-docs';
export const SWAGGER_API_NAME = 'H5 API';
export const SWAGGER_API_DESCRIPTION = 'H5 API Description';




